package com.ershijin.authserver;

import com.ershijin.common.util.SpringContextHolder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class AuthServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(AuthServerApplication.class, args);
    }

    // 注册 SpringContextHolder
    @Bean
    public SpringContextHolder springContextHolder() {
        return new SpringContextHolder();
    }
}